{extend name="base"/}
{block name="content"}
<div id="header-frame">
    {include file="public:top" /}
    <script type='text/javascript' src='__STATIC__/admin/uploadajax/js/jquery-2.0.3.min.js'></script>
    <script type='text/javascript' src='__STATIC__/admin/uploadajax/js/jquery.form.js'></script>
    <link href="__STATIC__/admin/uploadajax/css/style.css" type="text/css" rel="stylesheet"/>
</div>
<div id="frame-body">
    <div id="menu-frame" style="width: 100%;float: left;">
        {include file="public:menu" /}
    </div>
    <div id="main-frame" style="float: left;">
        <div id="dcMain" style="margin-left: 20px;width: 1682px;">
            <div id="urHere">DouPHP 管理中心<b>></b><strong>{$PageTitle}</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
            <h3>{$PageTitle}</h3>
            <style>
            	.tableBasic tr th,td{
            		height: 40px;
            	}
            	.tableBasic tr .buttonOn a{
            		margin: 0 auto;
            		display:inline-block;
            		padding: 0 10px;
            		height: 24px;
            		line-height: 24px;
            		font-size: 12px;
            		color: #ffffff;
            		background: #009E94;
            		border-radius: 10px;
            		margin-right: 5px;
            	}
            </style>
            <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                <tr>
                    <th  align="center">商品名称</th>
                    <th align="center">发货姓名</th>
                    <th  align="center">发货地址</th>
                    <th  align="center">电话</th>
                    <th align="center">邮编</th>
                    <th  align="center">发布时间</th>
                    <th  align="center">操作</th>
                </tr>
                {foreach name="allData" item="vo"}
                <tr>
                    <td align="center">{$vo['products_name']}</td>
                    <td align="center">{$vo['place_name']}</td>
                    <td align="center">{$vo['place_addr']}{$vo['addr_detail']}</td>
                    <td align="center">{$vo['mobile']}</td>
                    <td align="center">{$vo['code']}</td>
                    <td align="center"> {$vo['createtime']|date="Y-m-d H:i",###}</td>
                    <td align="center" class="buttonOn"><a href="{:url('admin/product/edit_place')}?id={$vo['place_id']}">编辑</a><a>{$vo['place_states']?'删除':'启用'}</a></td>
                </tr>
                {/foreach}
            </table>
        </div>
        </div>
        <div class="clear"></div>
        <script type="text/javascript">
            //删除分类
            function protypes_dele(message, id) {
                layer.open({
                    content : message,

                    icon:3,
                    btn : ['是','否'],
                    yes : function(){
                        var url="{:url('admin/product/protype_dele')}";
                        var success_url="{:url('admin/product/index')}";
                        $.post(url,{'protype_id':id},function(result){
                            if(result.status=='4')
                            {
                                dialog.success(result.message,success_url);
                            }else
                            {
                                dialog.error(result.message);
                            }
                        })
                    }
                });
            }
        </script>
        {/block}